package com.ruoyi.sql;

import com.ruoyi.hov.entity.HovDtl;
import com.ruoyi.query.entity.QueryDtl;
import lombok.Data;

/**
 * **********************
 * * Author: XiaShiLong *
 * * Date  : 2021-04-16 *
 * * Time  : 14:23      *
 * * to    : lz&xm      *
 * **********************
 * 条件对象
 **/
@Data
public class WhereEntity {

    /**
     * 表名
     */
    private String tableName;

    /**
     * 列明
     */
    private String columnName;

    /**
     * 查询类型
     */
    private Integer dictQueryType;

    /**
     * 值1
     */
    private String value1;

    /**
     * 值2
     */
    private String value2;

    public WhereEntity(QueryDtl e) {
        this.tableName = e.getTableName();
        this.columnName = e.getTableColumnName();
        this.dictQueryType = e.getDictQueryType();
        this.value1 = e.getValue1();
        this.value2 = e.getValue2();
    }

    public WhereEntity(HovDtl e) {
        this.tableName = e.getTableName();
        this.columnName = e.getColumnName();
        this.dictQueryType = e.getDictQueryType();
        this.value1 = e.getValue1();
        this.value2 = e.getValue2();
    }
}
